RHEL 5.1 loses changes to /etc/hosts above lines for `localhost`

Posted by warren on Server Fault See other posts from Server Fault or by warren
Published on 2010-05-04T14:22:13Z Indexed on 2010/05/04 14:28 UTC
Read the original article Hit count: 456

Filed under:
|
|
|

Is there a known fix (other than upgrading from 5.1) to fix /etc/hosts from being replaced on reboot?

I discovered this behavior when running HP's Server Automation tools. HPSA sets-up a variety of local aliases for itself to use for different components to communicate wit each other.

However, after reboot, the hosts files is reverted to a quasi-plain-vanilla version: all lines above the entry for localhost are removed. Manually re-adding those needed lines below the entries for localhost works, but is non-ideal.

Is there a fix for this behavior?


I do realize that RHEL 5u1 is not officially supported for HPSA 7.8, but the hosts file resetting is not good for a variety of other reasons, too.

© Server Fault or respective owner

Related posts about rhel5

Related posts about hosts